// 定义获取表格数据的参数类型
export type Status = 0 | 1
export interface IhospitalListParams {
  page: number
  limit: number
  provinceCode?: string
  cityCode?: string
  districtCode?: string
  hosname?: string
  hoscode?: string
  hostype?: string
  status?: Status
}
// 定义医院列表表格数据响应接口
export interface IhosItem {
  id: string
  createTime: string
  param: {
    hostypeString: string
    fullAddress: string
  }
  hosname: string
  logoData: string
  status: number
  intro: string
  hoscode: string
  route: string
}

export type IhosList = IhosItem[]
//描述请求表格数据时响应回来的数据对象的类型
export interface IhospitalListRes {
  content: IhosList
  totalElements: number
}

// 省,市,区数据对象接口
export interface IdicItem {
  id: number
  name: string
  value: string
}
// 省,市,区数据数组接口
export type IdicList = IdicItem[]

// 定义所有科室数据的类型
export type IdepList = IdepItem[]
export interface IdepItem {
  depcode: string
  depname: string
  disabled?: boolean
  children: IdepList
}

// 定义排班规则响应数据类型

export interface IscheduleItem {
  workDate: string
  dayOfWeek: string
  reservedNumber: number
  availableNumber: number
}

export type IscheduleList = IscheduleItem[]

export interface IscheduleRes {
  bookingScheduleList: IscheduleList
  total: number
}

// 注意: 接口可以继承接口.IdetailItem继承IscheduleItem就相当于把IsheduleItem里面的四个属性都写在了IdetailItem中
export interface IdetailItem extends IscheduleItem {
  // workDate: string
  // dayOfWeek: string
  // reservedNumber: number
  // availableNumber: number
  id: string
  hoscode: string
  depcode: string
  title: string
  skill: string
  amount: number
}

export type IdetailList = IdetailItem[]

// 医院详情信息类型
export interface IhosDetail {
  bookingRule?: {
    cycle: number
    releaseTime: string
    stopTime: string
    quitTime: string
    rule: string[]
  }
  hospital?: IhosItem
}
